home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 553 < prev    next >
Internet Message Format  |  1996-08-06  |  1KB

  1. Path: stdc.demon.co.uk!clive
  2. From: clive@stdc.demon.co.uk (Clive D.W. Feather)
  3. Newsgroups: comp.std.c
  4. Subject: Re: Multibyte and wide-character support
  5. Date: Tue, 12 Mar 1996 06:12:08 GMT
  6. Organization: Demon Internet Limited (personal account)
  7. Message-ID: <Do558A.6po@stdc.demon.co.uk>
  8. References: <4he9gg$m9l@pentagon.io.com> <KANZE.96Mar7135846@gabi.gabi-soft.fr>
  9. Reply-To: cdwf@cityscape.co.uk
  10. X-NNTP-Posting-Host: stdc.demon.co.uk
  11.  
  12. In article <KANZE.96Mar7135846@gabi.gabi-soft.fr>,
  13. J. Kanze <kanze@gabi-soft.fr> wrote:
  14. >In article <4he9gg$m9l@pentagon.io.com> jamshid@io.com (Jamshid Afshar)
  15. >writes:
  16. >|> Btw, VC++4's docs say that if mbstowcs()'s wchar_t* destination
  17. >|> argument is NULL then the function doesn't do a conversion of the
  18. >|> multibyte string; it just returns the size needed to store the
  19. >|> multibyte string.
  20. > No mention of it in my copy of the standard.
  21.  
  22. But mbsrtowcs has the functionality you require.
  23.  
  24. >|> Also, the VC++4 docs seem to indicate fputws(), a
  25. >|> wchar_t version of fputs(), is "ANSI" compatible.  Standard C doesn't
  26. >|> actually specify any wide-character i/o functions, does it?
  27. > There not in the index, anyway.
  28.  
  29. Then your copy is out of date. fputws is part of the C Standard.
  30.  
  31. -- 
  32. Clive D.W. Feather                       | If you lie to the compiler,
  33. cdwf@cityscape.co.uk   (work, preferred) | it will get its revenge.
  34. clive@stdc.demon.co.uk (home)            |   - Henry Spencer
  35.